import bgImg from "./assets/posterbg.png";
import avatarImg from "./assets/avatar.jpeg";

// 数字小鸭卡绘制模版数据
export const FTY_DIGITAL_CARD_TEMPLATE_DATA = [
  {
    type: "image",
    options: {
      des: "卡片背景",
      url: "https://img.fatiaoya.com/card/digital_card_assets/times_card_bg.png",
      x: 0,
      y: 0,
      width: "375",
      height: "237",
      id: 1732771563557,
    },
  },
  {
    type: "avatar",
    options: {
      des: "小程序码",
      url: "https://img.fatiaoya.com/device/treadmill_1.jpg",
      x: 238,
      y: 92,
      r: 48,
      padding: 2,
      borderWidth: 2,
      borderColor: "#ffffff",
      isRound: true,
      id: 1732772055867,
    },
  },
  {
    type: "text",
    options: {
      des: "兑换码",
      text: "D0AKBG9",
      x: 76,
      y: 148,
      color: "#d73333",
      fontSize: 20,
      font: "黑体",
      isThroughLine: false,
      isCenter: false,
      width: 100,
      id: 1732779884310,
    },
  },
];

// 运动海报模版数据
const shortTextWidth = 375 / 3;
export const FTY_SPORT_POSTER_TEMPLATE_DATA = [
  {
    des: "整体背景",
    type: "rect",
    options: {
      x: 0,
      y: 0,
      width: 375,
      height: 750,
      color: "#fff",
    },
  },
  {
    des: "头图",
    type: "image",
    options: {
      url: bgImg,
      x: 0,
      y: 0,
      width: 375,
      height: 724 / 2,
      zIndex: 0,
    },
  },
  {
    des: "Slogan",
    type: "longText",
    options: {
      text: "“一场摸鱼式健身，就这样圆满结束了。”",
      x: 40,
      y: 60,
      color: "#fff",
      fontSize: 30,
      font: "italic bold cursive",
      lineHeight: 40,
      lineWidth: 375 - 40 * 2,
      maxLine: 4,
    },
  },
  {
    des: "头像",
    type: "avatar",
    options: {
      url: avatarImg,
      x: 25,
      y: 300,
      r: 25,
      borderColor: "#fff",
      borderWidth: 4,
    },
  },
  {
    des: "昵称",
    type: "text",
    options: {
      text: "Believer",
      x: 90,
      y: 320,
      color: "#fff",
    },
  },
  {
    des: "Level",
    type: "text",
    options: {
      text: "唐老鸭",
      x: 90,
      y: 340,
      color: "#fff",
      fontSize: "14",
      font: "italic Lucida Sans Regular",
    },
  },
  {
    des: "今天锻炼了-label",
    type: "text",
    options: {
      text: "今天锻炼了",
      width: shortTextWidth,
      x: 25,
      y: 410,
      color: "#333",
      font: "italic",
      fontSize: 16,
    },
  },
  {
    des: "约消耗-label",
    type: "text",
    options: {
      text: "约消耗",
      width: shortTextWidth,
      x: 25 + shortTextWidth,
      y: 410,
      color: "#333",
      font: "italic",
      fontSize: 16,
    },
  },
  {
    des: "相当于-label",
    type: "text",
    options: {
      text: "相当于",
      width: shortTextWidth,
      x: 25 + shortTextWidth * 2,
      y: 410,
      color: "#333",
      font: "italic",
      fontSize: 16,
    },
  },

  {
    des: "锻炼了-value",
    type: "text",
    options: {
      text: 82,
      width: shortTextWidth,
      x: 25,
      y: 460,
      color: "#000",
      fontSize: 44,
      font: "DIN Condensed",
    },
  },

  {
    des: "约消耗-value",
    type: "text",
    options: {
      text: 329,
      width: shortTextWidth,
      x: 25 + shortTextWidth,
      y: 460,
      color: "#000",
      fontSize: 44,
      font: "DIN Condensed",
    },
  },

  {
    des: "相当于-value",
    type: "text",
    options: {
      text: 5,
      width: shortTextWidth,
      x: 25 + shortTextWidth * 2,
      y: 460,
      color: "#000",
      fontSize: 44,
      font: "DIN Condensed",
    },
  },

  {
    des: "今天锻炼了-unit",
    type: "text",
    options: {
      text: "分钟",
      width: shortTextWidth,
      x: 25,
      y: 480,
      color: "#000",
      fontSize: 12,
    },
  },

  {
    des: "约消耗-unit",
    type: "text",
    options: {
      text: "大卡",
      width: shortTextWidth,
      x: 25 + shortTextWidth,
      y: 480,
      color: "#000",
      fontSize: 12,
    },
  },
  {
    des: "相当于-unit",
    type: "text",
    options: {
      text: "碗米饭",
      width: shortTextWidth,
      x: 25 + shortTextWidth * 2,
      y: 480,
      color: "#000",
      fontSize: 12,
    },
  },

  {
    type: "text",
    options: {
      text: "本月运动",
      x: 25,
      y: 520,
      color: "#000",
      fontSize: 16,
    },
  },
  {
    type: "text",
    options: {
      text: "（妥妥的摸鱼式健身）",
      x: 40 + 25 + 10,
      y: 520,
      color: "#f00",
      fontSize: 12,
    },
  },

  {
    type: "text",
    options: {
      text: 3,
      width: shortTextWidth,
      x: 25,
      y: 575,
      color: "#000",
      fontSize: 44,
      font: "DIN Condensed",
    },
  },

  {
    type: "text",
    options: {
      text: 328,
      width: shortTextWidth,
      x: 25 + shortTextWidth,
      y: 575,
      color: "#000",
      fontSize: 44,
      font: "DIN Condensed",
    },
  },

  {
    type: "text",
    options: {
      text: 1348,
      width: shortTextWidth,
      x: 25 + shortTextWidth * 2,
      y: 575,
      color: "#000",
      fontSize: 44,
      font: "DIN Condensed",
    },
  },

  {
    type: "text",
    options: {
      text: "天",
      width: shortTextWidth,
      x: 25,
      y: 600,
      color: "#000",
      fontSize: 12,
    },
  },

  {
    type: "text",
    options: {
      text: "分钟",
      width: shortTextWidth,
      x: 25 + shortTextWidth,
      y: 600,
      color: "#000",
      fontSize: 12,
    },
  },
  {
    type: "text",
    options: {
      text: "大卡",
      width: shortTextWidth,
      x: 25 + shortTextWidth * 2,
      y: 600,
      color: "#000",
      fontSize: 12,
    },
  },
];
